var WebDeveloper = WebDeveloper || {};

WebDeveloper.Overlay        = WebDeveloper.Overlay || {};
WebDeveloper.Overlay.Images = WebDeveloper.Overlay.Images || {};


// Disables images
WebDeveloper.Overlay.Images.toggleImages = function(element)
{

	var pref = Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);
	
	if(pref.getIntPref("permissions.default.image") === 2)
		pref.setIntPref("permissions.default.image", 1);
	else
		pref.setIntPref("permissions.default.image", 2);
  BrowserReload();
};

//user_pref("webdeveloper.disable.styles.key", "");